package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.Orders;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface OrderRepository extends JpaRepository<Orders,Integer> {

    @Query(value = "select * from orders where out_trade_no = ?1",nativeQuery = true)
    Orders findOutTradeNo(String out_trade_no);
}
